package com.hzeport.bgs22emduty.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.masa.common.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalTime;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("EMDU_PARAM_SMS_TEMPLATE")
@ApiModel(value = "参数-短信模板配置表")
public class ParamSmsTemplate extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "关区GUID，源自H4A")
    @TableField(value = "CUSTOM_ID")
    @JsonProperty(value = "templateCode")
    private String templateCode;

    @ApiModelProperty(value = "关区中文名称")
    @TableField(value = "CUSTOM_NAME")
    @JsonProperty(value = "templateName")
    private String templateName;

    @ApiModelProperty(value = "短信提醒人员类型：1.调班申请人员；1.调班确认人员")
    @TableField(value = "DUTY_TYPE")
    @JsonProperty(value = "dutyType")
    private String dutyType;

    @ApiModelProperty(value = "预期短信发送时间")
    @TableField(value = "SMS_SEND_TIME")
    @JsonProperty(value = "sSendTime")
    private LocalTime sSendTime;

    @ApiModelProperty(value = "提前发送天数")
    @TableField(value = "SMS_SEND_BEFORE")
    @JsonProperty(value = "sSendBefore")
    private Long sSendBefore;

    @ApiModelProperty(value = "是否发送短信：0.不发送；1.发送")
    @TableField(value = "IS_SEND")
    @JsonProperty(value = "isSend")
    private String isSend;

    @ApiModelProperty(value = "短信内容")
    @TableField(value = "SMS_CONTENT")
    @JsonProperty(value = "remark")
    private String remark;

    @ApiModelProperty(value = "短信类型：1.值班提醒短信；2.值班通知提醒；3.值班信息上报提醒；4.签到异常短信；5.签退异常短信；6.调班提醒短信；")
    @TableField(value = "SMS_TYPE")
    @JsonProperty(value = "smsType")
    private String smsType;

    @ApiModelProperty(value = "值班时段ID，关联值班时段配置表PARAM_DUTY主键ID")
    @TableField(value = "PARAM_DUTY_ID")
    @JsonProperty(value = "paramDutyId")
    private String paramDutyId;

    @ApiModelProperty(value = "是否提醒值班员：0.不提醒；1.提醒")
    @TableField(value = "IS_DUTY")
    @JsonProperty(value = "isDuty")
    private String isDuty;
}
